home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Puzzle / Cubox.swf / scripts / DefineSprite_237 / frame_29 / DoAction.as < prev   
Text File  |  2004-06-30  |  2KB  |  116 lines

  1. if(stage == "1")
  2. {
  3.    total = "39";
  4.    if(score == total)
  5.    {
  6.       tellTarget("/star1")
  7.       {
  8.          gotoAndPlay(2);
  9.       }
  10.    }
  11. }
  12. if(stage == "2")
  13. {
  14.    total = "41";
  15.    if(score == total)
  16.    {
  17.       tellTarget("/star2")
  18.       {
  19.          gotoAndPlay(2);
  20.       }
  21.    }
  22. }
  23. if(stage == "3")
  24. {
  25.    total = "42";
  26.    if(score == total)
  27.    {
  28.       tellTarget("/star3")
  29.       {
  30.          gotoAndPlay(2);
  31.       }
  32.    }
  33. }
  34. if(stage == "4")
  35. {
  36.    total = "39";
  37.    if(score == total)
  38.    {
  39.       tellTarget("/star4")
  40.       {
  41.          gotoAndPlay(2);
  42.       }
  43.    }
  44. }
  45. if(stage == "5")
  46. {
  47.    total = "35";
  48.    if(score == total)
  49.    {
  50.       tellTarget("/star5")
  51.       {
  52.          gotoAndPlay(2);
  53.       }
  54.    }
  55. }
  56. if(stage == "6")
  57. {
  58.    total = "38";
  59.    if(score == total)
  60.    {
  61.       tellTarget("/star6")
  62.       {
  63.          gotoAndPlay(2);
  64.       }
  65.    }
  66. }
  67. end = "OUT OF A POSSIBLE " add total add " POINTS, YOU SCORED " add score add ".";
  68. if(score == total)
  69. {
  70.    tellTarget("star")
  71.    {
  72.       gotoAndStop("A");
  73.    }
  74.    dial = "CUBOX MASTER";
  75. }
  76. else if(total - "5" < score)
  77. {
  78.    tellTarget("star")
  79.    {
  80.       gotoAndStop("B");
  81.    }
  82.    dial = "EXPERT PLAYER";
  83. }
  84. else if(total - "10" < score)
  85. {
  86.    tellTarget("star")
  87.    {
  88.       gotoAndStop("C");
  89.    }
  90.    dial = "BEGINNER";
  91. }
  92. else if(total - "15" < score)
  93. {
  94.    tellTarget("star")
  95.    {
  96.       gotoAndStop("D");
  97.    }
  98.    dial = "NICE TRY";
  99. }
  100. else if(total - "20" < score)
  101. {
  102.    tellTarget("star")
  103.    {
  104.       gotoAndStop("F");
  105.    }
  106.    dial = "...?";
  107. }
  108. else
  109. {
  110.    tellTarget("star")
  111.    {
  112.       gotoAndStop("over");
  113.    }
  114.    dial = "GIVE UP";
  115. }
  116.